package online.heycm.rbac.param.basic;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author hey
 * @version 1.0
 * @date 2024/1/17 15:52
 */
@Data
public class InterfaceEditReq implements Serializable {

    private static final long serialVersionUID = 8119440505992608478L;

    /**
     * 接口id
     */
    @NotNull
    private Integer interfaceId;

    /**
     * 接口路由
     */
    @NotBlank
    private String interfacePath;

    /**
     * 是否需要token：1-是 0-否
     */
    @NotNull
    @Max(1)
    @Min(0)
    private Integer needToken;

    /**
     * 接口说明
     */
    private String remark;
}
